<?php get_header(); ?>

<div id="bigcolumn">

	<?php
	$cat = get_query_var('cat');
	$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
	query_posts('showposts=20&paged=' . $paged .'&cat='.$cat);
	//$wp_query->is_archive = true; $wp_query->is_home = false;
	?>
	<?php if (have_posts()) : ?>
	
	<div class="page-all">
	<div class="page-top">
	<div class="containerI">
	<!-- 使用面包屑导航
	<?php if ($comfy['tree'] == true) : ?>
	<div class="sitenav">
	<a href="<?php bloginfo('url'); ?>"><?php print NAV_HOME; ?></a>&nbsp;&nbsp;&raquo;&nbsp;&nbsp;<?php single_cat_title(); ?>
	</div>
	<?php endif; ?>
	-->
	<div class="post"><h2><?php single_cat_title(); ?></h2></div>
	
	<!-- Plugin Navigation --><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?><!-- End -->
	<ul class="vidlist">
	<?php while (have_posts()) : the_post(); ?>
	<li id="post-<?php the_ID(); ?>">
	<div class="videothumb"><?php show_thumb(150,113,$comfy['crop'],$comfy['quality']); ?><div class="playit"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"></a></div></div>
	<span class="date"><?php the_time('M d, Y'); ?></span>
	<span class="title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
	</li>
	<?php endwhile; ?>
	</ul><div class="clear"></div>
	<!-- Plugin Navigation --><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?><!-- End -->

	</div>
	</div>
	</div>
	<div class="page-bottom"></div>

	<?php else : ?>
	
	<!-- Not found? -->
	<?php include TEMPLATEPATH. '/widgets/404.html'; ?>

	<?php endif; ?>

<div class="clear"></div>
</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>